package com.quikin.persistence.jpa.entity.aa;

import java.io.Serializable;
import javax.persistence.*;
import java.math.BigDecimal;
import java.util.Set;


/**
 * The persistent class for the PERMISSION database table.
 * 
 */
@Entity
public class Permission implements Serializable {
	private static final long serialVersionUID = 1L;

	@Id
	@Column(name="PERMISSION_ID")
	private String permissionId;

	private boolean active;

	private String description;

	//bi-directional many-to-many association to PermGroup
	@ManyToMany(mappedBy="permissions")
	private Set<PermGroup> permGroups;

	//bi-directional many-to-many association to UserProfile
	@ManyToMany(mappedBy="permissions")
	private Set<UserProfile> userProfiles;

    public Permission() {
    }

	public String getPermissionId() {
		return this.permissionId;
	}

	public void setPermissionId(String permissionId) {
		this.permissionId = permissionId;
	}

	public boolean isActive() {
		return this.active;
	}

	public void setActive(boolean active) {
		this.active = active;
	}

	public String getDescription() {
		return this.description;
	}

	public void setDescription(String description) {
		this.description = description;
	}

	public Set<PermGroup> getPermGroups() {
		return this.permGroups;
	}

	public void setPermGroups(Set<PermGroup> permGroups) {
		this.permGroups = permGroups;
	}
	
	public Set<UserProfile> getUserProfiles() {
		return this.userProfiles;
	}

	public void setUserProfiles(Set<UserProfile> userProfiles) {
		this.userProfiles = userProfiles;
	}
	
}